import request from '@/plugins/axios/request';
let baseURL = process.env.VUE_APP_BASE_API + "/tech-dict"

export function listName() {
  return request({
    url: `${baseURL}/listName`,
    method: 'get'
  })
}

// [代码接口]列表
export function list(data) {
  return request({
    url: `${baseURL}/list`,
    method: 'post',
    data: data
  })
}

// [代码接口]启用禁用
export function change(data) {
  return request({
    url: `${baseURL}/change`,
    method: 'get',
    params: data
  })
}

// [代码接口]批量删除
export function deleteLabel(data) {
  return request({
    url: `${baseURL}/detele`,
    method: 'post',
    data: data
  })
}

// [代码接口]新增
export function addLabel(data) {
  return request({
    url:  `${baseURL}/add`,
    method: 'post',
    data: data
  })
}

// [代码接口]更新
export function updateLabel(data) {
  return request({
    url: `${baseURL}/update`,
    method: 'post',
    data: data
  })
}

